﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Contract.Business.Entity;
using Generic.Data.Entity;

namespace DataEntity
{
    //Criado por : Gustavo
    //Data       : 9/29/2011 1:08:22 AM
    public partial class DEFuncao : IDataEntity<BEFuncao>
    {
        #region IDataEntity<BEFuncao> Members

        public BEFuncao ConvertToBE(int rel)
        {
            try
            {
                BEFuncao entidade = new BEFuncao();

                entidade.Codigo = this.Codigo;
                entidade.Descricao = this._Descricao;




                return entidade;
            }
            catch (Exception)
            {
                throw;
            }
        }

        public void ConvertFromBE(BEFuncao entity)
        {
            try
            {
                this.Codigo = entity.Codigo;
                this._Descricao = entity.Descricao;

            }
            catch (Exception)
            {
                throw;
            }
        }

        #endregion
    }
}
